{$CLEO .cs}

//-------------MAIN---------------
thread 'GAI'


:GAI_11
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @GAI_11 
if 
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -377.516 2233.67 radius 150.0 150.0 
else_jump @GAI_11 
023C: load_special_actor 'POCONG' as 4 // models 290-299 
Model.Load(#SPECIAL04)
060A: create_decision_maker_type 0 store_to 10@ // decision\allowed\m_.ped files 
07E5: copy_decision_maker 10@ to 11@ 
038B: load_requested_models 
jump @GAI_116

:GAI_116
wait 0 
if
   Model.Available(#SPECIAL04)
else_jump @GAI_116 
0@ = Actor.Create(CivMale, #SPECIAL04, -377.516, 2233.67, 43.2069)
Actor.SetImmunities(0@, 0, 1, 1, 1, 0)
Actor.Health(0@) = 10000
060B: set_actor 0@ decision_maker_to 11@ 
Actor.SetWalkStyle(0@, "OLDMAN")
0446: set_actor 0@ dismemberment_possible 0 
05E2: AS_actor 0@ kill_actor $PLAYER_ACTOR 
jump @GAI_529

:GAI_529
wait 0 
if
   Actor.Dead(0@)
else_jump @GAI_566 
jump @GAI_593 

:GAI_566
wait 0 
if 
   Actor.Dead($PLAYER_ACTOR)
else_jump @GAI_529 
jump @GAI_674 

:GAI_593
wait 0 
0394: play_music 2 
Player.Money($PLAYER_CHAR) += 250000
Actor.RemoveReferences(0@)
0296: unload_special_actor 4
jump @GAI_742

:GAI_674
Actor.RemoveReferences(0@)
0296: unload_special_actor 4
wait 15000 
jump @GAI_11

:GAI_742
wait 0 
0A93: end_custom_thread  

